﻿using Network.UpdateData;
using System.Net.Sockets;

namespace SFJDService.SocketHandle
{
    class PH01Request2RemoveLast : PacketHandle
    {
        public PH01Request2RemoveLast(Socket socket, Packet packet) : base(socket, packet) { }

        protected override void Handle()
        {
            if (Runtime.thisUser.IsAdmin)
            {
                int lastID = Runtime.xmlData.GetLastID();
                Launcher.SendMsg2All(typeof(PH01RemoveLast).GetDictianaryKey(), lastID.ToString());
            }
        }
    }
}
